{include file="public/header" /}
<style type="text/css">
    #title span{ float: right; }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content {:config('adminClass.main')}">
    <div class="ibox float-e-margins">
        {include file="public/tophead" /}
        {include file="public/top" /}
        <div class="ibox-content">
            {include file="public/topsection"}
            <div class="row row-lg">
                <div class="col-sm-12">
                    <div class="example">
                        <table data-toggle="table" data-striped="false">
                            <thead>
                            <tr>
                                <th data-width="5%">排序</th>
                                <th data-width="10%">id</th>
                                <th data-width="25%">标题</th>
                                <th data-width="10%">管理</th>
                            </tr>
                            </thead>
                            <tbody>
                            {php}$hides=array('1'=>'<font color="#f00">隐藏</font>','0'=>'<font color="#1ab394">显示</font>');{/php}
                            {volist name="data" id="v"}
                            <tr id="id{$v.id}" class="class">
                                <td>{$v.sort}</td>
                                <td>{$v.id}</td>
                                <td><a>{$v.title}</a></td>
                                <td>
                                    <div class="btn-group">
                                        <button data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">操作 <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu">
                                            <li><a onclick="add('{:url('addquestionCategory',['id'=>$v['id'],'url'=>-1])}')">修改</a>
                                            </li>
                                            <li class="divider"></li>
                                            <li><a onclick="del({$v.id})">删除</a>
                                            </li>
                                        </ul>
                                    </div>
                                </td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.css"}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.js"}
<script type="text/javascript">
    $(document).ready(function(){
    });
    function del(id){
        swal_del(id,"{:url('delquestionCategory')}")
    }
</script>